package com.rois.librois.RoIS;


/**
* RoIS/ReturnCode_t.java .
* IDL-to-Java コンパイラ (ポータブル), バージョン "3.1" で生成
* 生成元: RoIS_IDL.idl
* 2011年9月8日 0時05分17秒 JST
*/


/******************************************
 enum
******************************************/
public class ReturnCode_t implements org.omg.CORBA.portable.IDLEntity
{
  private        int __value;
  private static int __size = 6;
  private static com.rois.librois.RoIS.ReturnCode_t[] __array = new com.rois.librois.RoIS.ReturnCode_t [__size];

  public static final int _RoIS_OK = 0;
  public static final com.rois.librois.RoIS.ReturnCode_t RoIS_OK = new com.rois.librois.RoIS.ReturnCode_t(_RoIS_OK);
  public static final int _RoIS_ERROR = 1;
  public static final com.rois.librois.RoIS.ReturnCode_t RoIS_ERROR = new com.rois.librois.RoIS.ReturnCode_t(_RoIS_ERROR);
  public static final int _RoIS_BAD_PARAMETER = 2;
  public static final com.rois.librois.RoIS.ReturnCode_t RoIS_BAD_PARAMETER = new com.rois.librois.RoIS.ReturnCode_t(_RoIS_BAD_PARAMETER);
  public static final int _RoIS_UNSUPPORTED = 3;
  public static final com.rois.librois.RoIS.ReturnCode_t RoIS_UNSUPPORTED = new com.rois.librois.RoIS.ReturnCode_t(_RoIS_UNSUPPORTED);
  public static final int _RoIS_OUT_OF_RESOURCES = 4;
  public static final com.rois.librois.RoIS.ReturnCode_t RoIS_OUT_OF_RESOURCES = new com.rois.librois.RoIS.ReturnCode_t(_RoIS_OUT_OF_RESOURCES);
  public static final int _RoIS_TIMEOUT = 5;
  public static final com.rois.librois.RoIS.ReturnCode_t RoIS_TIMEOUT = new com.rois.librois.RoIS.ReturnCode_t(_RoIS_TIMEOUT);

  public int value ()
  {
    return __value;
  }

  public static com.rois.librois.RoIS.ReturnCode_t from_int (int value)
  {
    if (value >= 0 && value < __size)
      return __array[value];
    else
      throw new org.omg.CORBA.BAD_PARAM ();
  }

  protected ReturnCode_t (int value)
  {
    __value = value;
    __array[__value] = this;
  }
} // class ReturnCode_t
